package cn.alone.product.domain;

import cn.alone.basic.domain.BaseDomain;
import cn.alone.org.domain.Shop;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
/**
 * 产品详情
 * @author lanan
 */
@Data
public class Product extends BaseDomain {
    /*服务名称*/
    private String name;
    /*图片路径*/
    private String resources;
    /*售价*/
    private BigDecimal saleprice;
    /*下架时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime;
    /*上架时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    /*产品状态*/
    private Integer state = 0;
    /*成本价*/
    private String costprice;
    /*操作时间*/
    private Date createtime;
    //销售数量
    private Integer salecount;

    private Long shop_id;

    private ProductDetail detail = new ProductDetail();
    private Shop shop = new Shop();

}
